
include $(ACM_ROOT)/src/common_lib_macro.mk

EMC_FLAGS = -fPIC
LOCAL_CPPFLAGS = \
  -g3 \
  -I $(ACM_ROOT)/src/include

vpath %.h ../include

# Alhabetically arranged.
C_SRC = tw_list.c parse_log.c 

C_OBJS = $(C_SRC:.c=.o)
LOG_TRACER = log_tracer 

all: build

build: $(LOG_TRACER)

$(LOG_TRACER): $(C_OBJS)
	$(CC) -o $@ $^ 
	$(CP) $^ $(OBJDIR)

.PHONY: clean
clean : 
	$(RM) $(C_OBJS) $(LOG_TRACER)

ifneq ($(MAKECMDGOALS),clean)
-include $(CPP_SRC:.c=.d)
endif
